import request from '@/utils/request'

// 查询消息设置列表
export function listBalanceWarning(query) {
  return request({
    url: '/messages/balanceWarning/list',
    method: 'get',
    params: query
  })
}

// 查询消息设置详细
export function getBalanceWarning(id) {
  return request({
    url: '/messages/balanceWarning/' + id,
    method: 'get'
  })
}

// 新增消息设置
export function addBalanceWarning(data) {
  return request({
    url: '/messages/balanceWarning',
    method: 'post',
    data: data
  })
}

// 修改消息设置
export function updateBalanceWarning(data) {
  return request({
    url: '/messages/balanceWarning',
    method: 'put',
    data: data
  })
}

// 删除消息设置
export function delBalanceWarning(id) {
  return request({
    url: '/messages/balanceWarning/' + id,
    method: 'delete'
  })
}
